//
//  SHNetworkReachabilityManager.h
//  JiFengDaRen
//
//  Created by SH_iOS on 2018/2/2.
//  Copyright © 2018年 SH_iOS. All rights reserved.
//

/*** 网络监测***/
#import <Foundation/Foundation.h>

typedef NS_ENUM(NSInteger, SHNetworkReachabilityStatus) {
    SHNetworkReachabilityStatusUnknown          = -1,
    SHNetworkReachabilityStatusNotReachable     = 0,
    SHNetworkReachabilityStatusReachableViaWWAN = 1,
    SHNetworkReachabilityStatusReachableViaWiFi = 2,
};
//网络状态block
typedef void(^NetworkStatuBlock)(NSInteger status);

@interface SHNetworkReachabilityManager : NSObject

/**
 *  网络监测
 *
 *  @param block 判断结果回调
 *
   AFNetworkReachabilityStatusUnknown          = -1,//位置网络
   AFNetworkReachabilityStatusNotReachable     = 0,//没有网络
   AFNetworkReachabilityStatusReachableViaWWAN = 1,//流量
   AFNetworkReachabilityStatusReachableViaWiFi = 2,//wifi

 *
 */
+ (void)startMonitoringNetWorkStatuComplete:(NetworkStatuBlock)complete;
@end
